\section{fsm\+\_\+sii.\+h File Reference}
\label{fsm__sii_8h}\index{fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}}


Ether\+C\+AT slave information interface F\+SM structure.  


\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \textbf{ ec\+\_\+fsm\+\_\+sii}
\begin{DoxyCompactList}\small\item\em Slave information interface F\+SM. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Typedefs}
\begin{DoxyCompactItemize}
\item 
typedef struct \textbf{ ec\+\_\+fsm\+\_\+sii} \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t}
\end{DoxyCompactItemize}
\subsection*{Enumerations}
\begin{DoxyCompactItemize}
\item 
enum \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t} \{ \textbf{ E\+C\+\_\+\+F\+S\+M\+\_\+\+S\+I\+I\+\_\+\+U\+S\+E\+\_\+\+I\+N\+C\+R\+E\+M\+E\+N\+T\+\_\+\+A\+D\+D\+R\+E\+SS}, 
\textbf{ E\+C\+\_\+\+F\+S\+M\+\_\+\+S\+I\+I\+\_\+\+U\+S\+E\+\_\+\+C\+O\+N\+F\+I\+G\+U\+R\+E\+D\+\_\+\+A\+D\+D\+R\+E\+SS}
 \}\begin{DoxyCompactList}\small\item\em S\+II access addressing mode. \end{DoxyCompactList}
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\label{fsm__sii_8h_aaabcdf786b590efeab32a3d22e0128fd}} 
void \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+init} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$, \textbf{ ec\+\_\+datagram\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Constructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__sii_8h_a8caf4d1dad1846b4f2604c646cf5e5f8}} 
void \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+clear} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\label{fsm__sii_8h_a38e7b8c01e605fff2c33fac389d91600}} 
void \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+read} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$, uint16\+\_\+t, \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t})
\begin{DoxyCompactList}\small\item\em Initializes the S\+II read state machine. \end{DoxyCompactList}\item 
\mbox{\label{fsm__sii_8h_a07f4477300db5c173a24df91f6f22073}} 
void \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+write} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$, \textbf{ ec\+\_\+slave\+\_\+t} $\ast$, uint16\+\_\+t, const uint16\+\_\+t $\ast$, \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t})
\begin{DoxyCompactList}\small\item\em Initializes the S\+II write state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+exec} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Executes the S\+II state machine. \end{DoxyCompactList}\item 
int \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+success} (\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$)
\begin{DoxyCompactList}\small\item\em Returns, if the master startup state machine terminated with success. \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{Detailed Description}
Ether\+C\+AT slave information interface F\+SM structure. 



\subsection{Typedef Documentation}
\mbox{\label{fsm__sii_8h_a6b596f5c1a4212b443a4429b2baed8f2}} 
\index{fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}!ec\+\_\+fsm\+\_\+sii\+\_\+t@{ec\+\_\+fsm\+\_\+sii\+\_\+t}}
\index{ec\+\_\+fsm\+\_\+sii\+\_\+t@{ec\+\_\+fsm\+\_\+sii\+\_\+t}!fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+sii\+\_\+t}
{\footnotesize\ttfamily typedef struct \textbf{ ec\+\_\+fsm\+\_\+sii} \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t}}

\begin{DoxySeeAlso}{See also}
\doxyref{ec\+\_\+fsm\+\_\+sii}{p.}{structec__fsm__sii} 
\end{DoxySeeAlso}


Definition at line 55 of file fsm\+\_\+sii.\+h.



\subsection{Enumeration Type Documentation}
\mbox{\label{fsm__sii_8h_ab31614ec8c650bb9ad5c8370f43113b9}} 
\index{fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}!ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t@{ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t}}
\index{ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t@{ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t}!fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t}
{\footnotesize\ttfamily enum \textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+addressing\+\_\+t}}



S\+II access addressing mode. 

\begin{DoxyEnumFields}{Enumerator}
\raisebox{\heightof{T}}[0pt][0pt]{\index{E\+C\+\_\+\+F\+S\+M\+\_\+\+S\+I\+I\+\_\+\+U\+S\+E\+\_\+\+I\+N\+C\+R\+E\+M\+E\+N\+T\+\_\+\+A\+D\+D\+R\+E\+SS@{E\+C\+\_\+\+F\+S\+M\+\_\+\+S\+I\+I\+\_\+\+U\+S\+E\+\_\+\+I\+N\+C\+R\+E\+M\+E\+N\+T\+\_\+\+A\+D\+D\+R\+E\+SS}!fsm\+\_\+sii.\+h@{fsm\+\_\+sii.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ab31614ec8c650bb9ad5c8370f43113b9a37be562464a8536ed644aaf88fdd6705}} 
E\+C\+\_\+\+F\+S\+M\+\_\+\+S\+I\+I\+\_\+\+U\+S\+E\+\_\+\+C\+O\+N\+F\+I\+G\+U\+R\+E\+D\+\_\+\+A\+D\+D\+R\+E\+SS&Use configured addresses. \\
\hline

\end{DoxyEnumFields}


Definition at line 48 of file fsm\+\_\+sii.\+h.



\subsection{Function Documentation}
\mbox{\label{fsm__sii_8h_a7a55a4196ef667eb7320c07c1e290330}} 
\index{fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}!ec\+\_\+fsm\+\_\+sii\+\_\+exec@{ec\+\_\+fsm\+\_\+sii\+\_\+exec}}
\index{ec\+\_\+fsm\+\_\+sii\+\_\+exec@{ec\+\_\+fsm\+\_\+sii\+\_\+exec}!fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+sii\+\_\+exec()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+sii\+\_\+exec (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Executes the S\+II state machine. 

\begin{DoxyReturn}{Returns}
false, if the state machine has terminated 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & finite state machine \\
\hline
\end{DoxyParams}


Definition at line 137 of file fsm\+\_\+sii.\+c.

\mbox{\label{fsm__sii_8h_a3227702bf3cc7a1a6b7ce235b2fb8bbf}} 
\index{fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}!ec\+\_\+fsm\+\_\+sii\+\_\+success@{ec\+\_\+fsm\+\_\+sii\+\_\+success}}
\index{ec\+\_\+fsm\+\_\+sii\+\_\+success@{ec\+\_\+fsm\+\_\+sii\+\_\+success}!fsm\+\_\+sii.\+h@{fsm\+\_\+sii.\+h}}
\subsubsection{ec\+\_\+fsm\+\_\+sii\+\_\+success()}
{\footnotesize\ttfamily int ec\+\_\+fsm\+\_\+sii\+\_\+success (\begin{DoxyParamCaption}\item[{\textbf{ ec\+\_\+fsm\+\_\+sii\+\_\+t} $\ast$}]{fsm }\end{DoxyParamCaption})}



Returns, if the master startup state machine terminated with success. 

\begin{DoxyReturn}{Returns}
non-\/zero if successful. 
\end{DoxyReturn}

\begin{DoxyParams}{Parameters}
{\em fsm} & Finite state machine \\
\hline
\end{DoxyParams}


Definition at line 152 of file fsm\+\_\+sii.\+c.

